package com.firebroo.PushObserver;

public class ConcreteSubject extends Subject {
	private String state;
	
	public String getState(){
		return state;
	}
	public void change(String newState){
		state = newState;
		System.out.println("主题状态为:" + state);
		
		/*调用父类方法通知所有观察者*/
		notifyObservers(state);
	}

}
